module SGuns
{
	imports
	{
		Base,
	}
	item ScrapPistol
	{
	    EquipSound = ScrapPistolRack1,
		WorldStaticModel = ScrapPistol_Ground,
		ImpactSound	=	BulletHit,
		MaxRange	=	7,
		WeaponSprite	=	ScrapPistol,
		SoundVolume	=	30,
		MinAngle	=	0.95,
		Type	=	Weapon,
		MinimumSwingTime	=	0.5,
		ToHitModifier	=	1.5,
		NPCSoundBoost	=	1.5,
		KnockBackOnNoDeath	=	TRUE,
		Ranged	=	TRUE,
		SwingAmountBeforeImpact	=	0,
		ProjectileCount	=	1,
		ConditionLowerChanceOneIn	=	60,
		Weight	=	1.5,
		SplatNumber	=	5,
		PushBackMod	=	0.3,
		SubCategory	=	Firearm,
		ConditionMax	=	10,
		ShareDamage	=	FALSE,
		MaxHitCount	=	1,
		IsAimedFirearm	=	TRUE,
		DoorDamage	=	5,
		UseEndurance	=	FALSE,
		SwingAnim	=	Handgun,
		DisplayName	=	Scrap Pistol,
		MinRange	=	0.61,
		SwingTime	=	0.5,
		MultipleHitConditionAffected	=	FALSE,
		SwingSound	=	ScrapPistolSound,
		SoundRadius	=	60,
		MinDamage	=	0.6,
		MaxDamage	=	1.2,
		SplatSize	=	3,
		KnockdownMod	=	2,
		SplatBloodOnNoDeath	=	TRUE,
		Icon	=	ScrapPistol,
		RunAnim	=	Run_Weapon2,
		CriticalChance	=	20,
        CritDmgMultiplier = 4,
        AimingPerkCritModifier = 10,
        AimingPerkRangeModifier = 1.5,
        HitChance = 50,
        AimingPerkHitChanceModifier = 8,
        AimingPerkMinAngleModifier = 0.05,
        RecoilDelay = 10,
        SoundGain = 1.5,
        ClipSize = 15,
        ReloadTime = 30,
        AimingTime = 15,
        BreakSound  =   BreakMetalItem,
        MetalValue = 30,
        AmmoBox = Bullets9mmBox,
        MaxAmmo = 18,
        InsertAmmoSound = ScrapPistolInsert,
        EjectAmmoSound = ScrapPistolEject,
        RackSound = ScrapPistolRack,
        MagazineType = SGuns.ScrapPistolMagazine,
        AmmoType = SGuns.ScrapBullets,
        WeaponReloadType = handgun,
        JamGunChance = 2,
        AttachmentType = Holster,
		Tooltip    =    Tooltip_UsesScrapPistolMag,
		Tags = Gun,
	}
	fixing Fix ScrapPistol
    {
       Require : ScrapPistol,

       Fixer : GunParts=1; MetalWelding=5,
	   Fixer : GunParts=2; MetalWelding=3,
    }
	item ScrapSMG
	{
	    EquipSound = ScrapSMGRack,
		WorldStaticModel = ScrapSMG_Ground,
		UnequipSound = Fold,
		ImpactSound 		= BulletHit,
		MaxRange 		= 10,
		WeaponSprite 		= ScrapSMG,
		SoundVolume 		= 30,
		MinAngle 		= 0.45,
		Type 		= Weapon,
		MinimumSwingTime 		= 0.3,
		ToHitModifier 		= 1.5,
		NPCSoundBoost 		= 1.5,
		KnockBackOnNoDeath 		= TRUE,
		Ranged 		= TRUE,
		SwingAmountBeforeImpact 		= 0,
		ProjectileCount 		= 1,
		ConditionLowerChanceOneIn 		= 15,
		Weight 		= 2.7,
		SplatNumber 		= 5,
		PushBackMod 		= 0.3,
		SubCategory 		= Firearm,
		ConditionMax 		= 25,
		ShareDamage 		= FALSE,
		MaxHitCount 		= 1,
		IsAimedFirearm 		= TRUE,
		DoorDamage 		= 15,
		UseEndurance 		= FALSE,
		SwingAnim 		= Rifle,
		DisplayName 		= Scrap SMG,
		MinRange 		= 0.61,
		SwingTime 		= 0.03,
		MultipleHitConditionAffected 		= FALSE,
		SwingSound 		= ScrapSMGSound,
		SoundRadius 		= 50,
		MinDamage 		= 1.2,
		MaxDamage 		= 1.5,
		SplatSize 		= 3,
		KnockdownMod 		= 2,
		SplatBloodOnNoDeath 		= TRUE,
		Icon 		= ScrapSMG,
		RunAnim 		= Run_Weapon2,
		IdleAnim 		= Idle_Weapon2,
		CriticalChance 		= 10,
		CritDmgMultiplier 		= 6,
		AimingPerkCritModifier 		= 12,
		HitChance 		= 10,
		AimingPerkHitChanceModifier 		= 10,
		AimingPerkMinAngleModifier 		= 0.01,
		AimingPerkRangeModifier 		= 5,
		RecoilDelay 		= 0,
		PiercingBullets 		= TRUE,
		SoundGain 		= 1.5,
		ReloadTime 		= 7,
		AimingTime 		= 30,
		RequiresEquippedBothHands 		= TRUE,
		BreakSound 		= BreakingWeapon1,
		MetalValue 		= 60,
		TwoHandWeapon 		= TRUE,
		AmmoBox 		= 223Box,
		MaxAmmo 		= 30,
		InsertAmmoSound 		= ScrapSMGInsert,
		EjectAmmoSound 		= ScrapSMGEject,
		RackSound 		= ScrapSMGRack,
		AmmoType 		= SGuns.ScrapBullets,
		WeaponReloadType 		= boltaction,
		MagazineType 		= SGuns.ScrapSMGMagazine,
		JamGunChance 		= 2,
		AttachmentType 		= Rifle,
		FireMode = Auto,
		Tooltip    =    Tooltip_UsesScrapSMGMag ,
		Tags = Gun,
	}
	fixing Fix ScrapSMG
    {
       Require : ScrapSMG,

       Fixer : GunParts=1; MetalWelding=6,
	   Fixer : GunParts=2; MetalWelding=4,
    }
	
	item ScrapSMGMagazine
	{
		CanStack 		= TRUE,
		WorldStaticModel = ScrapSMGMag_Ground,
		Weight 		= 0.3,
		Type 		= Normal,
		DisplayName 		= Scrap SMG Magazine,
		Icon 		= ScrapSMGMagazine,
		MaxAmmo 		= 30,
		AmmoType 		= SGuns.ScrapBullets,
		StaticModel 		= GunMagazine,
		Tooltip    =    Tooltip_UsesScrapBullets,
		Tags = GunMagazine,
		GunType            = SGuns.ScrapSMG,
	}
	item ScrapPistolMagazine
	{
		CanStack 		= TRUE,
		WorldStaticModel = ScrapPistolMag_Ground,
		Weight 		= 0.3,
		Type 		= Normal,
		DisplayName 		= Scrap Pistol Magazine,
		Icon 		= ScrapPistolMagazine,
		MaxAmmo 		= 18,
		AmmoType 		= SGuns.ScrapBullets,
		StaticModel 		= GunMagazine,
		Tooltip    =    Tooltip_UsesScrapBullets,
		Tags = GunMagazine,
		GunType            = SGuns.ScrapPistol,
	}
	item ScrapBullets
	{
		Count 		= 1,
		WorldStaticModel = ScrapBullet_Ground,
		Weight 		= 0.01,
		Type 		= Normal,
		DisplayName 		= Scrap Bullets,
		DisplayCategory 		= Ammo,
		Icon 		= ScrapBullets,
	}
	item ScrapBBox
	{
	    Type		=	Drainable,
		WorldStaticModel = ScrapBB_Ground,
		UseDelta	=	0.10,
		Count 		= 1,
		Weight 		= 3,
		DisplayName 		= Scrap Bullet Box,
		DisplayCategory 		= Item,
		Icon 		= ScrapBBox,
	}
	item ScrapGatling
	{
	    EquipSound = ScrapGatlingRack,
		WorldStaticModel = ScrapGatling_Ground,
		UnequipSound = Fold,
		ImpactSound	=	BulletHit,
		MaxRange	=	15,
		WeaponSprite	=	ScrapGatling,
		SoundVolume	=	100,
		MinAngle	=	0.5,
		Type	=	Weapon,
		MinimumSwingTime	=	0.040,
		ToHitModifier	=	1.5,
		NPCSoundBoost	=	1.5,
		KnockBackOnNoDeath	=	TRUE,
		Ranged	=	TRUE,
		SwingAmountBeforeImpact	=	0,
		ProjectileCount	=	2,
		ConditionLowerChanceOneIn	=	40,
		Weight	=	30,
		SplatNumber	=	6,
		PushBackMod	=	4,
		MinDamage	=	1,
		MaxDamage	=	1.5,
		SubCategory	=	Firearm,
		ConditionMax	=	30,
		ShareDamage	=	FALSE,
		MaxHitCount	=	5,
		IsAimedFirearm	=	TRUE,
		DoorDamage	=	35,
		UseEndurance	=	FALSE,
		SwingAnim	=	ScrapGatling_Idle,
		IdleAnim 	=   ScrapGatling_Idle,
		RunAnim		=	ScrapGatling_Idle,
		DisplayName	=	Gatling,
		MinRange	=	2,
		SwingTime	=	0.050,
		MultipleHitConditionAffected	=	FALSE,
		SwingSound	=	ScrapGatlingSound,
		SoundRadius	=	80,
		SplatSize	=	3,
		KnockdownMod	=	2,
		SplatBloodOnNoDeath	=	TRUE,
		Icon	=	ScrapGatling,
		CriticalChance = 25,
        CritDmgMultiplier = 3,
       		AimingPerkCritModifier = 15,
       		HitChance = 45,
       		AimingPerkHitChanceModifier = 15,
       		AimingPerkMinAngleModifier = 0,
       		AimingPerkRangeModifier = 2,
       		RecoilDelay = 0,
       		PiercingBullets = FALSE,
       		SoundGain = 1,
       		ReloadTime = 10,
       		AimingTime = 15,
       		RequiresEquippedBothHands = TRUE,
		BreakSound  =   BreakMetalItem,
        TwoHandWeapon = TRUE,
        MetalValue = 60,
        AmmoBox = 556Box,
        MaxAmmo = 80,
        InsertAmmoSound = ScrapGatlingInsert,
        EjectAmmoSound = ScrapGatlingEject,
        RackSound = ScrapGatlingRack,
        MagazineType = GatlingBoxMagazine,
        AmmoType = SGuns.ScrapBullets,
        WeaponReloadType = boltaction,
        JamGunChance = 0.1,
        AttachmentType = Rifle,
        FireMode = Auto,
		Tooltip    =    Tooltip_UsesScrapGatlingBoxMag,
		Tags = Gun,
	}
	fixing Fix ScrapGatling
    {
       Require : ScrapGatling,
	   ConditionModifier : 1.5,

       Fixer : GunParts=6; MetalWelding=10,
	   Fixer : GunParts=12; MetalWelding=8,
    }
	fixing Fix ScrapGatling Mechanic
    {
       Require : ScrapGatling,

       Fixer : EngineParts=15; MetalWelding=8,
	   Fixer : EngineParts=30; Mechanics=6,
	   Fixer : CarBattery2=1,
    }
    item GatlingBoxMagazine
    {
        CanStack	=	FALSE,
		WorldStaticModel = ScrapGatlingBoxMag_Ground,
        Weight	=	0.2,
        Type	=	Normal,
        DisplayName	=	Gatling Box Magazine,
        Icon	=	GatlingBoxMagazine,
        MaxAmmo = 80,
        AmmoType = SGuns.ScrapBullets,
        StaticModel = ScrapGatlingBoxMag_Ground,
		Tooltip    =    Tooltip_UsesScrapBullets,
		Tags = GunMagazine,
		GunType            = SGuns.ScrapGatling,
    }
}
